package com.sky.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sky.entity.Panorama;
import com.sky.service.PanoramaService;
import com.sky.mapper.PanoramaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 32603
* @description 针对表【panorama(全景图表)】的数据库操作Service实现
* @createDate 2024-09-28 17:57:36
*/
@Service
public class PanoramaServiceImpl extends ServiceImpl<PanoramaMapper, Panorama>
    implements PanoramaService{

    @Autowired
    private PanoramaMapper panoramaMapper;

    @Override
    public List<Panorama> getByNonheritage(Integer id) {
        return panoramaMapper.selectList(
                new QueryWrapper<Panorama>().eq("nonheritage_id", id));
    }
}




